package com.njtoyo.taxi.admin.mapper.secondary.mapper;

import cn.hutool.core.date.DateTime;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njtoyo.taxi.admin.library.Const;
import com.njtoyo.taxi.admin.mapper.secondary.entity.data.DashboardDriverServiceDaily;
import com.njtoyo.taxi.admin.rest.presenter.data.funnel.OrderCallChartVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author Dell
 * @since 2022-01-21
 */
@Repository
@DS(Const.SECONDARY_DS)
public interface DashboardDriverServiceDailyMapper extends BaseMapper<DashboardDriverServiceDaily> {

    List<DashboardDriverServiceDaily> getRateChart(@Param("cantonIds") List<Long> cantonIds, @Param("companyIds") List<Long> companyIds, @Param("startTime") Date startTime, @Param("endTime") Date endTime);

    List<OrderCallChartVO> selectInServiceChart(@Param("startDate") Date startDate,@Param("endDate") Date endDate);
}
